<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="probiz" tagdir="/WEB-INF/tags/probiz"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>
<%@ taglib prefix="content" tagdir="/WEB-INF/tags/content"%>
<html>
	<title>${category.categoryName}</title>
	<meta name="keywords" content="${(not empty category.keywords)?category.keywords:category.categoryName}" />
	<meta name="description" content="${(not empty category.metaDescription)?category.metaDescription:category.categoryDescription}" />
	<body>
		<%---------------------------------start:当前位置 -------------------------%>
		<div class="position"><fmt:message key="position.your"/>
			<catalog:productCategoryNavigation categoryId="${category.categoryId}"/>
		</div>
		<%---------------------------------end:  当前位置 -------------------------%>
		
		<div class="product_list">
			
			<ul class="grid">
		<c:choose>
			<c:when test="${sc.totalCount != 0}">
				<c:choose>
					<c:when test="${sc.totalCount != 0}">		
						<c:forEach items="${productList}" var="product">
							<%@ include file="include/productItem.jspf"%>
						</c:forEach>
					</c:when>
					<c:otherwise>
						<li class="clearfix">
							<div class="fl"><img src="${noTxtImagePath}/404.jpg" width="200" height="267" /></div>
							<div class="fr">
								<div class="top clearfix">
									<h3><fmt:message key="productList.message.noProductActive" /></h3>
								</div>
								<div class="con">
									<fmt:message key="productList.message.noProductActive" />
								</div>
								<div class="more"></div>
							</div>
						</li>
					</c:otherwise>
				</c:choose>
			</c:when>
			<c:otherwise>
				<li class="clearfix">
					<div class="fl"><img src="${noTxtImagePath}/404.jpg" width="200" height="267" /></div>
					<div class="fr">
						<div class="top clearfix">
							<h3><fmt:message key="productList.noShelveProduct.msg.title"/></h3>
						</div>
						<div class="con">
							<dl>
								<dt><fmt:message key="productList.noShelveProduct.msg.advice"/>：</dt>
								<dd><fmt:message key="productList.noShelveProduct.msg.advice1"/></dd>
								<dd><fmt:message key="productList.noShelveProduct.msg.advice2"/></dd>
							</dl>
						</div>
						<div class="more"></div>
					</div>
				</li>
			</c:otherwise>
		</c:choose>	
			</ul>
		</div>
	</body>
</html>
